package com.example.administrator.xiaoxiang.utils;

import android.content.Context;
import android.content.SharedPreferences;


public class ShareUtils {
    private static final String FILE_NAME="Frist_Write";
    private  static final String MODE_NAME="Read";
    public static boolean getWelcomeBoolean(Context context){
        return  context.getSharedPreferences(FILE_NAME,Context.MODE_PRIVATE).getBoolean(MODE_NAME,false);
    }
    public static void putWelcomeBoolean(Context context,boolean isFrst){
        SharedPreferences.Editor editor= context.getSharedPreferences(FILE_NAME,Context.MODE_APPEND).edit();
        editor.putBoolean(MODE_NAME,isFrst);
        editor.commit();

    }



}
